<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <!-- <meta charset="gb2312"> -->
        
        <meta name="author" content="">

        <meta name="Keywords" content="">
        <meta name="description" content="">
        
        <!-- 启用360浏览器的极速模式(webkit)-->
        <meta name="renderer" content="webkit">          
        <!-- 避免IE使用兼容模式 -->
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        
        <!-- mobile -->
        <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no" />
        
        <link rel="shortcut icon" href="favicon.ico" type="images/x-icon" />
        <link rel="bookmark" href="favicon.ico" />

        <title>金塔珠宝</title>
        <!--[if lt IE 9 ]>
            <script src="js/hack/html5shiv.js"></script>
        <![endif]-->
<!--        <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>-->
        
        <!-- <script src="http://192.168.1.106:8008/con/assets/js/f5.js"></script> -->
        

        <link rel="stylesheet" href="../Public/css/base.css">
        <link rel="stylesheet" href="../Public/css/common.css">
        <link rel="stylesheet" href="../Public/css/page.css">
        <link rel="stylesheet" href="../Public/css/font.css">
        <link rel="stylesheet" href="../Public/css/responsive.css">
        
        
    </head>

    <body>
        <!-- nav [[ -->
             <include file="Common:header"/>
        <!-- nav ]] -->

        <!-- header [[ -->
<!--         <header class="header">
            <div class="title">
                <div class="bg">
                    <span class="icon"></span>
                    <span class="txt">我的订单</span>
                </div>
            </div>
        </header> -->
        <!-- header ]] -->
            <div class="menu_top" style="width: 100%;height: 40px;border-top: 1px solid #f2f2f2">
                <ul class="menu-top">
                    <!--主页-->
                    <li class="cdddd" style="float: left;line-height: 40px;width: 25%;text-align: center;" ><a style="font-size: 1.6em; color: #444242;height:40px;display: block;<if condition='$Think.get.htid eq "" '>color:red;border-bottom:1px solid red</if>" href="{:U('User/dingdan')}">全部订单</a></li>
                     <li class="cdddd"  style="float: left;line-height: 40px;width: 25%;text-align: center;" ><a style="font-size: 1.6em;color: #444242;height:40px;display: block;<if condition='$Think.get.htid eq "0" '>color:red;border-bottom:1px solid red</if> " href="{:U('User/dingdan',array('htid'=>0))}">待发货</a></li>
                    <li class="cdddd"  style="float: left;line-height: 40px;width: 25%;text-align: center;"><a 
                    style=" font-size: 1.6em;color: #444242;height:40px;display: block;<if condition='$Think.get.htid eq 1 '>color:red;border-bottom:1px solid red</if> " href="{:U('User/dingdan',array('htid'=>1))}">已发货</a></li>
          

                </ul>
            </div>
            <div style="clear: both"></div>
        <!-- content [[ -->
        <div class="content mod_order">
            <ul class="item_list">
              <volist name="data" id='vo' empty="$empty">
                <li class="list list_hd">
                  <span class="number" style="float: left;">订单号：{$vo.code}</span>
                    <time class="time" style="float: right;">{$vo.time|date="Y-m-d",###}</time>
                    
                </li>
                  <volist name="vo.dingdan" id="jjj">
                <li class="list list_info">
                    <div class="img_wrap">
                        <img src="Uploads/{$jjj.img}" alt="" class="img">
                    </div>
                    <div class="txt_wrap" onclick="xiangqing(this,'{:U('User/xiangqing',array('id'=>$vo['id']))}')">
                        <p class="item_title">{$jjj.name}</p>
                        <!-- <p class="item_price">&yen;&nbsp;1208</p> -->
                        <ul class="item_parameter">
                         <notempty name="jjj.chengse">
                            <li class="p_list"><span class="txt_title">材质</span>{$jjj.chengse}</li>
                        </notempty>
                         <notempty name="jjj.guige">
                            <li class="p_list"><span class="txt_title">规格</span>{$jjj.guige}</li>
                      </notempty>
                       <notempty name="jjj.gjinz">
                            <li class="p_list"><span class="txt_title">重量</span>{$jjj.gjinz}</li>
                            </notempty>
                        <notempty name="jjj.gyanse">
                            <li class="p_list"><span class="txt_title">颜色</span>{$jjj.gyanse}</li>
                              </notempty>
                              <notempty name="jjj.gshul">
                            <li class="p_list"><span class="txt_title">数量</span>{$jjj.gshul}</li></notempty>
                        </ul>
                    </div>
                </li>
                 
                   </volist>   
                         <li class="list list_hd" style="background: #fff">
                  <span class="number" style="float: left;"><if condition="$vo.htid eq 0 ">待发货</if><if condition="$vo.htid eq 1 ">已发货</if></span>

                  
                    <div class="time" style="float: right;"><a style="background: #999999;height: 33px;line-height: 33px;display: block;width: 80px;text-align: center;margin-top: 2%;border-radius: 3px" href="javascript:;" onClick="shanchu(this,'{:U('Home/User/person',array('id'=>$vo['id']))}')" >删除订单</a></div>
                 
                </li>   
            </volist>

            </ul>
            

            

            
             
             
          
        </div>
        <!-- content ]] -->
        
        <!-- footer [[ -->
       <include file="Common:footer"/>
        <script type="text/javascript" src="../Public/layer/layer.js"></script>
    <style>
          .layui-layer-btn .layui-layer-btn0{background-color:#999999;border-color: #999999}
          .layui-layer-title{border-radius: 6px 6px 0 0}
          .layui-layer{border-radius: 7px}
          </style>
<!-- 选择变色 -->
<script type="text/javascript">

            

    </script>
<script type="text/javascript">

// function getcheckbox(obj){
//  if($(obj).is(":checked")){  
//       $(obj).parent().parent().parent().addClass('checked');
   
//     }else{
//      $(obj).parent().parent().parent().removeClass('checked');
//     }
    
// }

 function shanchu(obj,starturl){
  layer.confirm('确认删除订单？',{title:'订单删除'},function(){
       //AJAX异步传输过去              
       htmlobj=$.ajax({url:starturl,async:false});
       if(htmlobj.responseText=="ok")
       {
        layer.msg('删除成功!',{time:1000},function(){
           location.reload();
        });
 
              
       }else{
         layer.msg('删除失败!',{time:1000},function(){
           location.reload();
        });
      
       }
  });
}  
 function xiangqing(obj,url){
window.location.href=url;
 }
</script>



    </body>
</html>